package com.example.littleSpider.myapplication.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.littleSpider.myapplication.R;

import java.util.List;

/**
 * Created by littleSpider on 2017/12/19.
 */

public class MySaleAdapter extends BaseQuickAdapter<String, BaseViewHolder>{

    public MySaleAdapter(@LayoutRes int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.getView(R.id.tv_goods_status).setVisibility(View.GONE);
        helper.setText(R.id.tv_contact_merchant, " 退款 ");
        helper.addOnClickListener(R.id.tv_contact_merchant);
    }
}
